package com.koron.css2.serviceManage.mapper;

import com.koron.css2.serviceManage.bean.UserFieldBean;
import com.koron.css2.serviceManage.bean.UserFieldListBean;
import com.koron.css2.serviceManage.queryBean.UserFieldConfigQueryBean;
import org.apache.ibatis.annotations.Param;
import org.koron.ebs.mybatis.EnvSource;

import java.util.List;
/**
 *	用户字段配置
 * @author 甄玉晴
 *
 */
@EnvSource("_default")
public interface UserFieldConfigMapper {
	
	
	/**
	 * 查询配置
	 * 
	 * @return
	 */
	UserFieldBean findUserFieldConfig(UserFieldBean bean);
	/**
	 * 根据id查询
	 * 
	 * @return
	 */
	UserFieldBean findUserFieldConfigById(String id);

	/**
	 * 添加
	 * 
	 * @param bean
	 * @return
	 */
	void insertUserFieldConfig(UserFieldBean bean);
	/**
	 * 删除
	 * 
	 * @param id
	 * @return
	 */
	void deleteUserFieldConfig(String id);
	
	/**
	 * 修改
	 * 
	 * @param bean
	 * @return
	 */
	Integer updateUserFieldConfig(UserFieldBean bean);
	/**
	 * 字段配置列表
	 * @param query
	 * @return
	 */
	List<UserFieldListBean> userFieldConfigList(UserFieldConfigQueryBean query);
	/**
	 * 字段配置列表
	 * @param query
	 * @return
	 */
	List<UserFieldBean> userFieldConfigSelect(UserFieldBean query);
	List<UserFieldBean> findUserField(UserFieldBean query);
	/**
	 * 获取页面的分组
	 * @param query
	 * @return
	 */
	List<String>  userFieldGroupSelect(UserFieldBean query);

	/**
	 * 获取立户所需动态配置字段
	 */
	List<UserFieldBean> findFieldNameByPageNameAndGroupCode(@Param("pageName") String pageName,@Param("groupCode") String groupCode);

	List<UserFieldBean> registerFindFieldNameByPageNameAndGroupCode(@Param("pageName") String pageName,@Param("groupCode") String groupCode);


}
